문서의 임의 삭제는 제재 대상으로, 문서를 삭제하려면 삭제 토론을 진행해야 합니다. 문서 보기문서 삭제토론 프로그래밍 언어/예제 (문단 편집) === [[Java]] === {{{#!syntax java package wiki.namu.test; class NinetyNineBottles{ public static void main(String[] args){ for(int i = 99; i >= 0; i--){ switch(i){ case 0: System.out.println("'No more bottles of beer on the wall, no more bottles of beer." ); System.out.println("Go to the store and buy some more, 99 bottles of beer on the wall."); break; case 1: System.out.println(i + "bottle of beer on the wall, " + i + "bottle of beer."); System.out.println("Take one down and pass it around, no more bottles of beer on the wall."); break; case 2: System.out.println(i + "bottles of beer on the wall, " + i + "bottles of beer."); System.out.println("Take one down and pass it around, 1 bottle of beer on the wall."); break; default: System.out.println(i + "bottles of beer on the wall, " + i + "bottles of beer."); System.out.println("Take one down and pass it around, " + (i-1) + "bottles of beer on the wall."); } } } } }}}저장 버튼을 클릭하면 당신이 기여한 내용을 CC-BY-NC-SA 2.0 KR으로 배포하고,기여한 문서에 대한 하이퍼링크나 URL을 이용하여 저작자 표시를 하는 것으로 충분하다는 데 동의하는 것입니다.이 동의는 철회할 수 없습니다.캡챠저장미리보기